﻿

using System;
using System.Web;
using System.Text;
using Mode;
namespace Framework.Common
{
    /// <summary>
    /// Session操作类
    /// </summary>
    public  class SessionShard
    {
        public static loginInfo loginUser
        {
            get
            {
                if (HttpContext.Current.Session["LoginUserInfo"] != null)
                {
                    try
                    {
                        return (loginInfo)HttpContext.Current.Session["LoginUserInfo"];
                    }
                    catch
                    {
                        return null;
                    }
                }
                else
                    return null;
            }

            set { HttpContext.Current.Session["LoginUserInfo"] = value; }
        }
    }
}
